﻿@model TGIApp.Model.EventVenue
@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>EventVenue</legend>
        <div class="editor-label">
            @Html.LabelFor(model => model.Event)
        </div>
        @{ if (Model != null && Model.Event != null)
           { 
            <div class="editor-field">
                @Html.DropDownListFor(model => model.Event_Id, new SelectList(ViewBag.Events, "Id", "Name", Model.Event_Id))
            </div>
           }
           else
           { 
            <div class="editor-field">
                @Html.DropDownListFor(model => model.Event_Id, new SelectList(ViewBag.Events, "Id", "Name"))
            </div>
           }
        }
        <div class="editor-label">
            @Html.LabelFor(model => model.Venue)
        </div>
        @{ if (Model != null && Model.Venue != null)
           { 
            <div class="editor-field">
                @Html.DropDownListFor(model => model.Venue_Id, new SelectList(ViewBag.Venues, "Id", "Name", Model.Venue_Id))
            </div>
           }
           else
           { 
            <div class="editor-field">
                @Html.DropDownListFor(model => model.Venue_Id, new SelectList(ViewBag.Venues, "Id", "Name"))
            </div>
           }
        }
        <div class="editor-label">
            @Html.LabelFor(model => model.ShowName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ShowName)
            @Html.ValidationMessageFor(model => model.ShowName)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.ShowDateTime)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ShowDateTime)
            @Html.ValidationMessageFor(model => model.ShowDateTime)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Description)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Description)
            @Html.ValidationMessageFor(model => model.Description)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.ImageUrl)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ImageUrl)
            @Html.ValidationMessageFor(model => model.ImageUrl)
        </div>
        @*<div class="editor-label">
            @Html.LabelFor(model => model.Template_Id)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Template_Id)
            @Html.ValidationMessageFor(model => model.Template_Id)
        </div>*@
        <div class="display-field">
            @Html.LabelFor(model => model.TicketTemplate)
        </div>
        @{ if (Model != null && Model.TicketTemplate != null)
           { 
               
            <div class="editor-field">
                @Html.DropDownListFor(model => model.Template_Id, new SelectList(ViewBag.Templates, "Id", "Name", Model.Template_Id))
            </div>
           
           }
           else
           { 
            <div class="editor-field">
                @Html.DropDownListFor(model => model.Template_Id, new SelectList(ViewBag.Templates, "Id", "Name"))
            </div>
           }
        }
        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}
